<?php
class TagFile extends Zend_Db_Table
{
	protected $_name ="tag_file";
	protected $_primary = 'id';

 //根据id 查询tag_file
    public function gettagByid($id){
          $select = $this->select();
          $select->where("id=".$id);
          return $this->fetchAll($select)->toArray();
    }



 //更新tag_file
    public function updatetagByid($array,$d){

		$db = $this->getAdapter();
		$where=$db->quoteInto('id = ?', $id);
		$this->update($array, $where);
	}
//删除tag_file
     public function deltagByid($id){
          $where = 'id = '. $id;
         $this->delete($where);
         return true;
    }

}

